package mapper;

import org.apache.ibatis.annotations.Param;
import pojo.Info;

import java.util.List;

public interface InfoMapper {
    public List<Info> selectAll();

    // 选择主页加载所需的基本Info
    public List<Info> selectBaseInfo();

    // 根据公告编号查询一个公告
    public List<Info> selectOneInfo(@Param("infoNo")long infoNo);

    public void updateInfo(@Param("info")Info info);

    public void deleteOneInfoOfInfoNo(@Param("infoNo")long infoNo);

    public List<String> selectPath(@Param("infoNo")long infoNo);

    public void addNewInfo(@Param("info")Info info);
}
